package com.shangyitong.yygh_hosp.repository;

import com.shangyitong.yygh.model.hosp.Department;
import com.shangyitong.yygh_hosp.service.DepartmentService;
import io.swagger.annotations.ApiParam;
import org.aspectj.apache.bcel.classfile.Module;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    Department getByHoscodeAndDepcode(String hoscode, String depcode);

    Page<Department> findByHoscode(String hoscode,Pageable pageable);

}
